package com.example.service.impl;

import com.example.service.MeteorologyService;
import com.example.domain.Meteorology;
import com.example.mapper.MeteorologyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MeteorologyServiceImpl implements MeteorologyService {

    @Autowired
    private MeteorologyMapper meteorologyMapper;

    @Override
    public List<Meteorology> getAll() {
        return meteorologyMapper.getAll();
    }

    @Override
    public Meteorology getById(Integer meteorologyId) {
        return meteorologyMapper.getById(meteorologyId);
    }

    @Override
    public boolean add(Meteorology meteorology) {
        return meteorologyMapper.add(meteorology);
    }

    @Override
    public boolean update(Meteorology meteorology) {
        return meteorologyMapper.update(meteorology);
    }

    @Override
    public boolean delete(Integer meteorologyId) {
        return meteorologyMapper.delete(meteorologyId);
    }

}
